/**
 * @description: 授权中心配置表
 * @version: 0.0.1
 * @author: z..
 * @Date: 2023-06-12 18:16:39
 */

import { Table, Model, Column, CreatedAt, UpdatedAt, DataType } from 'sequelize-typescript';

@Table({ tableName: 'auth_center_config' })
export class AuthCenterConfig extends Model {
  @Column({
    // type: DataType.BIGINT,
    primaryKey: true,       //主键
    autoIncrement: true,    //自增
    comment: "自增id"       //注释:只在代码中有效
  })
  id: number;

  @Column({
    type: DataType.TEXT,
    comment: '授权名称',
  })
  app_name: string;

  @Column({
    type: DataType.TEXT,
    comment: '授权编码',
  })
  app_code: string;

  @Column({
    type: DataType.TEXT,
    comment: '授权成功跳转地址',
  })
  callback_url: string;

  @CreatedAt
  created_at: Date;

  @UpdatedAt
  updated_at: Date;
}